package com.macro.mall.model.vo.product;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.macro.mall.model.response.ProductBatchGetResponse;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
public class ProductListVo {
    @JsonProperty("out_product_id")
    private String outProductId;
    private String name;
    private String desc;
    private String path;
    @JsonProperty("top_image")
    private String topImage;
    @JsonProperty("category_id")
    private String categoryId;
    @JsonProperty("biz_create_time")
    private Long bizCreateTime;
    @JsonProperty("biz_update_time")
    private Long bizUpdateTime;
    private List<ProductBatchGetResponse.SkuItem> skus;
    private Integer status;
    @JsonProperty("short_title")
    private String shortTitle;
    @JsonProperty("audit_info")
    private ProductBatchGetResponse.AuditInfo auditInfo;
    @JsonProperty("product_type")
    private Integer productType;
    @JsonProperty("settle_type")
    private Integer settleType;
    @JsonProperty("category_id_v2")
    private String categoryIdV2;
    @JsonProperty("item_id")
    private String itemId;


    /**
     * 销售价
     */
    private BigDecimal salePrice;

    /**
     * 折扣
     */
    private double discount;


    /**
     * 原始价格
     */
    private BigDecimal originPrice;

    private Integer sale;
}
